import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
// Vue.prototype.axios=axios
//方案2：vue-axios模块，提供标准化的注入，有提示
// 哈哈哈啊哈啊哈
import VueAxios from "vue-axios";
axios.defaults.baseURL = "http://localhost:3001"; //localhost
Vue.use(VueAxios, axios);

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
